package com.media.selector.media.loader

import android.net.Uri
import android.widget.ImageView
import androidx.annotation.NonNull
import androidx.annotation.Nullable

/**
 * date        ：2020/5/13
 * author      ：蒙景博
 * description ：
 */
interface IMediaSelecterLoader {

    /**
     * Load thumbnail of a static image resource.
     *
     * @param uri         Uri of the loaded image
     * @param imageView   ImageView widget
     */
    fun loadThumbnail(@Nullable uri: Uri?, @NonNull imageView: ImageView)

    /**
     * Load a static image resource.
     * @param uri       Uri of the loaded image
     * @param imageView ImageView widget
     */
    fun loadImage(@Nullable uri: Uri?, @NonNull imageView: ImageView)
}